package com.aaa.sbms.controller;

import com.aaa.sbms.service.RepairService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("rc")
public class RepairController {

    @Autowired
    private RepairService repairService;

    @RequestMapping("repairList")
    public  Object list(@RequestParam Map map){
        return repairService.getList(map);
    };

    @RequestMapping("updateIng")
    public Object updateIng(Integer ROOM){
        return repairService.updateIng(ROOM);
    }
}
